<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('tanxieyi');
    $return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'弹窗设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'弹窗设置',
				'list'=>array(
					array('type'=>'switch','title'=>'是否启用','name'=>'isopen'),
					array('type'=>'string','title'=>'弹窗标题','name'=>'title'),
					array('type'=>'richtext','title'=>'弹窗内容','name'=>'content'),
				)
			),
			),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$this->plugin_setting('tanxieyi',$postdata);
	exi('设置成功');
}
?>